﻿using System;

namespace BuzzX8.Xmpp.StreamElements.Stanza
{
    public class IqStanza : Stanza<IqType>
    {
        public IqStanza() : this(IqType.Get)
        { }

        public IqStanza(IqType type) : base("iq", type)
        { }

        protected override object GetAttributeValueForType(IqType type)
        {
            switch (type)
            {
                case IqType.Get:
                    return "get";

                case IqType.Set:
                    return "set";

                case IqType.Result:
                    return "result";

                case IqType.Error:
                    return "error";

                default:
                    throw new NotImplementedException();
            }
        }
    }
}
